home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / dvlprstc.hqx / Developer Stack 1.3r / card_26894.txt < prev    next >
Text File  |  1991-04-30  |  2KB  |  68 lines

  1. -- card: 26894 from stack: in.3r
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2612
  5. -- name: OSErr
  6.  
  7.  
  8. -- part 2 (button)
  9. -- low flags: 00
  10. -- high flags: A004
  11. -- rect: left=196 top=233 right=283 bottom=265
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 27056 / 27056
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Try it
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   if the optionkey is down then edit script of me
  23.   ask "Type in an error number..." with "-45"
  24.   put it into errorCode
  25.   if errorCode is empty then exit mouseup
  26.   OSErr "┬⌐1988SDrazga",errorCode
  27. end mouseUp
  28.  
  29.  
  30.  
  31. -- part contents for background part 2
  32. ----- text -----
  33. OSErr
  34.  
  35. -- part contents for background part 3
  36. ----- text -----
  37. This XCMD provides a friendly interface for reporting errors that are returned from other XCMDs & XFCNs.  It will display a dialog box with a short explanation of the error code.
  38.  
  39. This XCMD is ┬⌐1988 by Steve Drazga and all rights are reserved.  It may be used in any non-commercial, shareware, or commercial stacks as long as the following conditions are met:
  40.  
  41. 1) Within the credits of the stack the phrase 'Portions ┬⌐1988 Steve Drazga' should be included.
  42.  
  43. 2) Send a copy of your finished stack to me at:
  44. Steve Drazga
  45. AnalytX
  46. Box 388
  47. Southampton, PA  18966
  48.  
  49. If you need custom XCMDs/XFCNs, stacks, or HyperCard training for your organization contact:
  50. AnalytX at (215) 750-0792.
  51.  
  52. -- part contents for background part 10
  53. ----- text -----
  54. Syntax:
  55.  
  56. OSErr "┬⌐1988SDrazga",<errorCode>
  57.  
  58. The first parameter passed must be the copyright notice (the ┬⌐ symbol is option-g).
  59.  
  60. The second parameter is an integer representing the error code that needs to be reported.
  61.  
  62. -- part contents for background part 13
  63. ----- text -----
  64. 18
  65.  
  66. -- part contents for background part 30
  67. ----- text -----
  68. XCMD